import request from './api'

// 记录学习时间
export function dqtimes (data) {
  return request({
    url: '/Chat/chat/dqtimes',
    method: 'post',
    data
  })
}
// 课程详情
export function books_list (data) {
  return request({
    url: '/Chat/chat/books_list',
    method: 'post',
    data
  })
}
//  收藏
export function collectionOnclick (data) {
  return request({
    url: 'Chat/chat/collection_onclick',
    method: 'post',
    data
  })
}
//  赠送购买
export function give (data) {
  return request({
    url: '/chat/chat/give',
    method: 'post',
    data
  })
}
// 猜你喜欢
export function search_popularity (data) {
  return request({
    url: '/Chat/chat/search_popularity',
    method: 'post',
    data
  })
}
// 章节详情
export function class_list (data) {
  return request({
    url: '/Chat/chat/class_list',
    method: 'post',
    data
  })
}
// 学习次数
export function school_number (data) {
  return request({
    url: '/Chat/chat/school_number',
    method: 'post',
    data
  })
}
// 优惠券
export function obtain_coupons (data) {
  return request({
    url: '/Chat/chat/obtain_coupons',
    method: 'post',
    data
  })
}
// 购买
export function by_curriculum (data) {
  return request({
    url: '/Chat/chat/by_curriculum',
    method: 'post',
    data
  })
}
// 章节详情
export function books_chapter (data) {
  return request({
    url: '/Chat/chat/books_chapter',
    method: 'post',
    data
  })
}
// 试听试看
export function button_gochapter (data) {
  return request({
    url: '/Chat/chat/button_gochapter',
    method: 'post',
    data
  })
}
// 关注状态
export function follow_lecturer (data) {
  return request({
    url: '/Chat/chat/follow_lecturer',
    method: 'post',
    data
  })
}

// 发送评论
export function comments (data) {
  return request({
    url: '/Chat/chat/comments',
    method: 'post',
    data
  })
}

// 评论展示
export function comments_show (data) {
  return request({
    url: '/Chat/chat/comments_show',
    method: 'post',
    data
  })
}
// 分享图片
export function merge_image_date (data) {
  return request({
    url: '/Chat/chat/merge_image_date',
    method: 'post',
    data
  })
}
// 单卖章节详情
export function danchapterList (data) {
  return request({
    url: '/Chat/chat/chapter_list',
    method: 'post',
    data
  })
}
